package com.lyz.objectd3;

/**
 * @ClassName KeyBoard
 * @Description 鼠标类实现USB接口
 * @Author 2214361854
 * @Date 2022/2/19 15:11
 * @Version 1.0
 */
public class Mouse implements USB{
    private String name;
    @Override
    public void connect() {
        System.out.println(name+"接入鼠标");
    }

    @Override
    public void unconnect() {
        System.out.println(name+"拔出鼠标");
    }

    public void dbClick(){
        System.out.println(name+"双击了鼠标");
    }

    public Mouse() {
    }

    public Mouse(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
